
function xOut=tan(xIn)
  x = xIn.v;
  xOut.v=tan(x);
  d = sec(x).^2;
  xOut.d = elelmult_splastindx(d,xIn.d);

  xOut=class(xOut,'deriv1s');
